import { Module } from '@nestjs/common';
import {TypeOrmModule} from '@nestjs/typeorm'
import { BookController } from './book.controller';
import { BookService } from './book.service';
import {PartService} from '../part/part.service'
import {BookEntity} from './book.entity'
import {PartEntity} from '../part/part.entity'

@Module({
  imports: [TypeOrmModule.forFeature([BookEntity, PartEntity])],
  controllers: [BookController],
  providers: [BookService, PartService]
})
export class BookModule {}
